package com.ruoyi.biz.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 商品类别信息对象 biz_goods_category
 * 
 * @author tds
 * @date 2022-11-10
 */
public class BizGoodsCategory extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品类别id */
    private Long goodsId;

    /** 商品类别名称 */
    @Excel(name = "商品类别名称")
    private String name;

    /** 价格（元） */
    @Excel(name = "价格", readConverterExp = "元=")
    private BigDecimal price;

    /** 商品类别简称 */
    @Excel(name = "商品类别简称")
    private String shortName;

    /** 计算策略类别：0-单价 1-区间价格 */
    @Excel(name = "计算策略类别：0-单价 1-区间价格")
    private String caculateType;

    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setShortName(String shortName) 
    {
        this.shortName = shortName;
    }

    public String getShortName() 
    {
        return shortName;
    }
    public void setCaculateType(String caculateType) 
    {
        this.caculateType = caculateType;
    }

    public String getCaculateType() 
    {
        return caculateType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsId", getGoodsId())
            .append("parentId", getParentId())
            .append("name", getName())
            .append("price", getPrice())
            .append("shortName", getShortName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("caculateType", getCaculateType())
            .toString();
    }
}
